import request from '@/utils/request'
/**
 * 获取某线路总的管辖里程
 */
export function getRepairAmount(query) {
  return request({
    url: '/repair/jcwRepairJob/sumRepairOperateKilAllByLineId',
    method: 'get',
    params: query
  })
}
/**
 * 获取某线路已维修里程
 */
export function getRepairOk(query) {
  return request({
    url: '/repair/jcwRepairJob/sumRepairAmountAllByLineId',
    method: 'get',
    params: query
  })
}
/**
 * 获取某线路下区站维修情况
 */
export function getSitesData(query) {
  return request({
    url: '/repair/jcwRepairJob/getRepairAmountBySite',
    method: 'get',
    params: query
  })
}
/**
 * 参数cheJianId 根据车间Id查询维修里程，管辖里程
 */
export function getChejianData(query) {
  return request({
    url: '/repair/jcwRepairJob/getRepairAmountAllNumByCheJianId',
    method: 'get',
    params: query
  })
}
/**
 * String cheJianId,String dateFlag
 * 每工区本年度/本月已检修和总管辖里程数工区维度
 */
export function getWorkshopData(query) {
  return request({
    url: '/repair/jcwRepairJob/getWorkshopMileageByCheJianIdPath',
    method: 'get',
    params: query
  })
}
